<template>
  <base-tabs-head v-bind="$attrs" class="Task-tabs-head">
    <template v-slot:left>
      <span class="task-title">
      <i class="wk wk-task"/>{{ title }}
    </span>
    </template>
    <template v-slot:right>
      <el-button
          class="export-btn"
          @click="exportClick">导出
      </el-button>
    </template>
  </base-tabs-head>
</template>

<script>
import BaseTabsHead from '/src/szcomponent/BaseTabsHead/index.vue'

export default {
  /** 任务切换头 */
  name: 'TaskTabsHead',
  components: {
    BaseTabsHead
  },
  props: {
    title: String
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  mounted() {
  },

  beforeDestroy() {
  },
  methods: {
    /**
     * 导出
     */
    exportClick() {
      this.$emit('export')
    }
  }
}
</script>

<style lang="scss" scoped>
.task-title {
  margin-left: 30px;
  color: #333333;

  i {
    color: white;
    margin-right: 5px;
    padding: 3px;
    font-size: 12px;
    border-radius: $xr-border-radius-base;
    background-color: #1CBAF5;
  }
}

.export-btn {
  margin-right: 8px;
}
</style>
